//
//  HSPDetailCollectionViewCell.m
//  Icar
//
//  Created by dllo on 15/10/19.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "HSPDetailCollectionViewCell.h"
#import "BaseHeader.h"

@implementation HSPDetailCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self preceCell];
    }
    return self;
}

- (void)preceCell
{
    self.imageViewPo = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0 *ADJUSTHEIGHT , SCREEN_WIDTH, ADJUSTHEIGHT * 240)];
    [self.contentView addSubview:self.imageViewPo];
    
    self.labelImage = [[UILabel alloc]initWithFrame:CGRectZero];
    self.labelImage.font =[UIFont systemFontOfSize:18.];
    self.labelImage.textColor = [UIColor whiteColor];
    self.labelImage.numberOfLines = 0;
    [self.contentView addSubview:self.labelImage];
    
}
- (void)getimagePo:(HSPImageAppreciate *)model
{
    [_imageViewPo sd_setImageWithURL:[NSURL URLWithString:model.url]placeholderImage:[UIImage imageNamed:@"1.jpg"]];
    self.labelImage.text = model.desc;
    
}
@end
